import request from '@/utils/request'
import apis from './'

export function ocrIdcard (url, side) {
  return request({
    url: `${apis.GetId}?img_url=${url}&side=${side}`,
    method: 'get'
  })
}

export function ocrLicense (url) {
  return request({
    url: `${apis.GetLicense}?img_url=${url}`,
    method: 'get'
  })
}

export function ocrPdf (url) {
  return request({
    url: `${apis.GetPdf}?file_url=${url}`,
    method: 'get'
  })
}

export function ocrImage (url) {
  return request({
    url: `${apis.GetImg}?img_url=${url}`,
    method: 'get'
  })
}

export function autoSubject (subject) {
  return request({
    url: `${apis.AutoSubject}?subject=${subject}`,
    method: 'get'
  })
}
